package com.douleka.curd.controller;

import com.douleka.curd.service.ICardTypeService;
import com.douleka.curd.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author hg
 * @since 2024-03-19
 */
@CrossOrigin
@RestController
@RequestMapping("/cardType")
public class CardTypeController {

    @Autowired
    private ICardTypeService cardTypeService;

    //获取卡类型以及卡种
    @GetMapping("getType")
    public Result<Object> getType(){
        return cardTypeService.getType();
    }
}
